package club.emergency.wechat.model.ranking;

import club.emergency.wechat.model.GenericEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * Create with IntelliJ IDEA
 * Project Name: wechat
 * Package Name: club.emergency.wechat.model.ranking
 * Date: 2019/2/25
 *
 * @author: 快乐的小菌菌
 * Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Ranking extends GenericEntity {

    /**
     * 人员id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long staffId;

    /**
     * openid
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String openid;

    /**
     * 分数
     */
    private Integer score;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 头像
     */
    private String headImgUrl;
}
